﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using DevExpress.ExpressApp.DC;
using DevExpress.Persistent.Base;
using DevExpress.Persistent.BaseImpl;

namespace TransLogger.Module.BusinessObjects
{
    [XafDisplayName(@"全程最短驾驶时间")]
    [DefaultClassOptions]
    public class VehicleTripTime : BaseObject
    {
        public VehicleTripTime() : base(DevExpress.Xpo.Session.DefaultSession) { }
        public VehicleTripTime(DevExpress.Xpo.Session session) : base(session) { }
        public override void AfterConstruction() { base.AfterConstruction(); }

        private Enums.VehicleType fVehicleType;
        [XafDisplayName("车型")]
        public Enums.VehicleType VehicleType
        {
            get { return fVehicleType; }
            set { SetPropertyValue("VehicleType", ref fVehicleType, value); }
        }

        private Route fRoute;
        [XafDisplayName("运营线路")]
        public Route Route
        {
            get { return fRoute; }
            set { SetPropertyValue("Route", ref fRoute, value); }
        }

        private TimeSpan fTripTime;
        [XafDisplayName("全程最短驾驶时间")]
        public TimeSpan TripTime
        {
            get { return fTripTime; }
            set { SetPropertyValue("TripTime", ref fTripTime, value); }
        }
    }
}
